package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.entity.account.YuEbao;
import com.ms.p2p.provider.YeahpaysProvider;
import com.ms.p2p.service.impl.YuEbaoServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;


import java.math.BigDecimal;

@Service
public class YeahpayProviderImpl implements YeahpaysProvider {

	@Autowired
	YuEbaoServiceImpl yuEbaoService;

	public int insert(YuEbao map) {
		return yuEbaoService.insert(map);
	}

	public YuEbao findByUserId(int userId) {
		return yuEbaoService.findByUserId(userId);
	}



	public void income(BigDecimal money, int userId, String remark, String addIp) {
		 yuEbaoService.income(money,userId,remark,addIp);
	}

	public int into(BigDecimal money, int userId, String remark, String addIp) {
		return yuEbaoService.into(money,userId,remark,addIp);
	}

	public int out(BigDecimal money, int userId, String remark, String addIp) {
		return yuEbaoService.out(money,userId,remark,addIp);
	}
}
